﻿using System;
using System.Web.UI;
using EPiServer.Shell.WebForms;
using OpenWaves.Web;

[assembly: PublicAssemblyResources("OpenWaves.EPiServer.VideoProperty.Dialogs.VideoPreviewDialog.aspx")]
[assembly: PublicAssemblyResources("OpenWaves.EPiServer.VideoProperty.Dialogs.EPiServerUI.Master")]
namespace OpenWaves.EPiServer.VideoProperty.Dialogs
{
    public partial class VideoPreviewDialog : WebFormsBase 
    {
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
            this.VideoPreviewPlayer.VideoUrl = this.Request.QueryString["videoUrl"];

            LiteralControl ltr = new LiteralControl();
            ltr.Text = "<style type=\"text/css\" rel=\"stylesheet\">.video-wrapper { margin:0 auto; text-align:center; } .video-wrapper iframe {border:0px;}</style>";
            this.Page.Header.Controls.Add(ltr);

        }
    }
}